package com.x.provider.api.customer.enums;

import java.util.Calendar;

public class CustomerResourceOperBizScene {
    public enum CustomerResourceAddBizSceneEnum {
        ADD_RESUME_READ_COUNT_4_DAILY(1, CustomerResourceDefEnum.RESUME_READ_COUNT.getValue(), Calendar.DAY_OF_YEAR, 20L, 1),
        ADD_RESUME_READ_COUNT_4_RESUME_CREATED(2, CustomerResourceDefEnum.RESUME_READ_COUNT.getValue(), null, 10L, 1),
        ADD_RESUME_READ_COUNT_4_READ_ADVERTISE(3, CustomerResourceDefEnum.RESUME_READ_COUNT.getValue(), null, 3L, null),
        ADD_IM_SEND_COUNT_4_DAILY(4, CustomerResourceDefEnum.IM_SEND_COUNT.getValue(), Calendar.DAY_OF_YEAR, 20L, 1),
        ADD_IM_SEND_4_READ_ADVERTISE(5, CustomerResourceDefEnum.IM_SEND_COUNT.getValue(), null, 3L, null),
        ;
        private Integer id;
        private Integer resourceId;
        private Long count;
        private Integer period;
        private Integer maxAddCount;

        CustomerResourceAddBizSceneEnum(Integer id, Integer resourceId, Integer period, Long count, Integer maxAddCount){
            this.id = id;
            this.resourceId = resourceId;
            this.count = count;
            this.period = period;
            this.maxAddCount = maxAddCount;
        }

        public static CustomerResourceAddBizSceneEnum valueOf(Integer id){
            for (CustomerResourceAddBizSceneEnum item : CustomerResourceAddBizSceneEnum.values()) {
                if (item.getId().equals(id)){
                    return item;
                }
            }
            return null;
        }

        public Integer getId() {
            return id;
        }

        public Integer getResourceId() {
            return resourceId;
        }

        public Long getCount() {
            return count;
        }

        public Integer getPeriod() {
            return period;
        }

        public Integer getMaxAddCount() {
            return maxAddCount;
        }
    }

    public enum CustomerResourceDescBizSceneEnum {
        DESC_RESUME_READ_COUNT_4_READ_ONE(1, CustomerResourceDefEnum.RESUME_READ_COUNT.getValue(),1L),
        DESC_IM_SEND_COUNT_4_SEND_ONE(2, CustomerResourceDefEnum.RESUME_READ_COUNT.getValue(), 1L),
        ;
        private Integer id;
        private Integer resourceId;
        private Long count;

        CustomerResourceDescBizSceneEnum(Integer id, Integer resourceId, Long count){
            this.id = id;
            this.resourceId = resourceId;
            this.count = count;
        }

        public static CustomerResourceDescBizSceneEnum valueOf(Integer id){
            for (CustomerResourceDescBizSceneEnum item : CustomerResourceDescBizSceneEnum.values()) {
                if (item.getId().equals(id)){
                    return item;
                }
            }
            return null;
        }

        public Integer getId() {
            return id;
        }

        public Integer getResourceId() {
            return resourceId;
        }

        public Long getCount() {
            return count;
        }
    }


}
